package com.demo.house.service;

import com.demo.house.entity.Answer;
import com.demo.house.entity.Question;
import com.demo.house.vo.request.RequestAnswerVo;

import java.util.List;

/**
 * (Answer)表服务接口
 *
 * @author makejava
 * @since 2021-04-13 15:49:42
 */
public interface AnswerService {

    /**
     * 通过ID查询单条数据
     *
     * @param answer 主键
     * @return 实例对象
     */
    List<Answer> queryAll(Answer answer);

    /**
     * 用户新增评论
     *
     * @param requestAnswerVo 实例对象
     * @return 实例对象
     */
    int insert(RequestAnswerVo requestAnswerVo);


    List<Answer> list(Integer id);
}
